<input type="hidden" id="editCheck" shiro:hasPermission="sxPermission:edit" value="1" />
<input type="hidden" id="agentIdHidden"  />
<div class="am-modal am-modal-prompt" tabindex="-1" id="my-prompt">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">授信额上限</div>
    <div class="am-modal-bd">
      编辑授信额上限（万）：
      <input id="creditLimit" type="number" class="am-modal-prompt-input"/>
    </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn " data-am-modal-cancel="data-am-modal-cancel">取消</span>
      <span class="am-modal-btn " data-am-modal-confirm="data-am-modal-confirm">提交</span>
    </div>
  </div>
</div>

<div class="row-content am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
			<div class="widget am-cf">
				<div class="widget-head am-cf">
					<div class="widget-title  am-cf">合伙人授信规则管理</div>
				</div> 
				<form class="am-form am-form-horizontal">
					  <div class="am-form-group">
							<label for="agentkey" class="am-u-lg-1 am-form-label">手机号/姓名:</label>
							<div class="am-u-lg-1">
						 		<input type="text" class="am-form-field " placeholder="" id="agentkey" th:value="${agentkey}" /> 
							</div>
							<label for="grade" class="am-u-lg-1 am-form-label">合伙人等级</label>
							<div class="am-u-sm-1">
								<select id="grade"  data-am-selected="{btnWidth: '40%', btnSize: 'sm'}" name="grade"  >
									<option th:each="grade : ${grades}" 	     th:value="${grade.key}"    th:text="${grade.value}"></option>
								</select> 
							</div>
							<label for="creditSwitch" class="am-u-lg-1 am-form-label">授信权限状态</label>
							<div class="am-u-sm-1">
								<select id="creditSwitch"  data-am-selected="{btnWidth: '40%', btnSize: 'sm'}" name="creditSwitch"  >
									<option th:each="status : ${creditSwitch}" 	     th:value="${status.key}"    th:text="${status.value}"></option>
								</select> 
							</div>
							<label for="agentArea" class="am-u-lg-1 am-form-label">管辖区域</label>
							<div class="am-u-lg-1">
						 		<input type="text" class="am-form-field " placeholder="" id="agentArea" th:value="${agentArea}" /> 
							</div>
							<button type="button" class="am-btn am-btn-secondary"  onclick="search()">查询</button>
							<button type="button" class="am-btn am-btn-secondary" shiro:hasPermission="sxPermission:On" onclick="permissionOn()">启用授信权限</button>
							<button type="button" class="am-btn am-btn-secondary"  shiro:hasPermission="sxPermission:Off" onclick="permissionOff()">禁用授信权限</button>
						</div>
				</form>
				<div class="widget-body  am-fr">
					<!-- 表格 -->
					<div class="am-u-sm-12">
							<div class="widget-main padding-6 no-padding-left no-padding-right">
								<div id="dtGridContainer" class="dlshouwen-grid-container"></div>
								<div id="dtGridToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
							</div>
					</div>
 				
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" th:src="@{/customer/agent/manage/sxPermissionList.js}"/>


